<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <style type="text/css">
        body, h1, h2, h3, h4, h5, h6, ul, ol, li, p, img, input, span, button {
            margin: 0;
            padding: 0;
            font-size: 14px;
        }

        body {
            background-color: #1B1B1B
        }

        li {
            list-style: none;
        }

        .banner_wrap {
            height: 380px;
            padding: 12px;
            padding-bottom: 0;
            background: #fff;
            background: rgba(255, 255, 255, .86);
            width: 976px;
            position: relative;
            margin-top: 50px;
            margin-right: auto;
            margin-left: auto;
            margin-bottom: 0;
            box-shadow: 0 1px 3px rgba(167, 167, 167, .4);
        }

        .banner_wrap:hover .right {
            width: 30px;
        }

        .banner_wrap:hover .left {
            width: 30px;
        }

        .banner_wrap > ul li {
            position: absolute;
            display: none;
        }

        .left, .right {
            position: absolute;
            z-index: 999;
            background: #000;
            opacity: .4;
            cursor: pointer;
            font-weight: bold;
            width: 0px;
            height: 40px;
            color: #FFFFFF;
            font-size: 30px;
            font-family: "黑体";
            line-height: 40px;
            text-align: center;
            padding: 10px 0;
            top: 150px;
            overflow: hidden;
            -webkit-transition-duration: 0.2s; /* Safari 和 Chrome */
        }

        .right {
            right: 14px;
        }

        .on {
            z-index: 9;
        }

        .banner_select {
            text-align: center;
            width: 976px;
            left: 50%;
            margin-left: -488px;
            height: 40px;
            position: absolute;
            bottom: 0;
        }

        .banner_select > ul {
            width: 100%;
            height: 40px;
            text-align: center;
        }

        .banner_select > ul > li {
            float: left;
            font-size: 12px;
            display: inline-block;
            width: 195px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            height: 40px;
            color: #666;
            cursor: pointer;
            border-bottom: transparent 3px solid;
            position: relative;
        }

        .banner_select > ul > li a {
            border-right: 1px solid #c0c0c0;
            display: block;
            height: 15px;
            margin-top: 11px;
        }

        .last {
            border: 0px !important;
        }

        .J_trigger_line {
            background-color: #e6057d;
            position: absolute;
            bottom: -3px;
            left: 0;
            z-index: 9999;
            height: 3px;
            width: 195px;
            -webkit-transition-duration: 0.5s; /* Safari 和 Chrome */
        }
    </style>
</head>

<body style="">

<div class="banner_wrap">
    <div class="left"> &lt;</div>
    <div class="right">&gt;</div>
    <ul>
        <li class="on" style="display: block;" id="0"><img src="./www.jq22.com_files/15151432417741.jpg" height="340px">
        </li>
        <li id="1" class="" style="display: none;"><img src="./www.jq22.com_files/14766931740570.jpg" height="340px">
        </li>
        <li id="2" class="" style="display: none;"><img src="./www.jq22.com_files/15151438816406.jpg" height="340px">
        </li>
        <li id="3" class="" style="display: none;"><img src="./www.jq22.com_files/15151397738457.jpg" height="340px">
        </li>
        <li id="4" class="" style="display: none;"><img src="./www.jq22.com_files/15151446810109.jpg" height="340px">
        </li>
    </ul>
    <div class="banner_select">
        <ul>
            <li id="0"><a>苏泊尔VIP大牌日</a></li>
            <li id="1"><a>新人专享2重礼</a></li>
            <li id="2"><a>年货节预付</a></li>
            <li id="3"><a>来场说走就走的履行</a></li>
            <li id="4"><a class="last">新春年货 满199减100</a></li>
        </ul>
        <div class="J_trigger_line" style="left: 0px;"></div>
    </div>
</div>

<script src="./www.jq22.com_files/jquery-1.10.2.js.下载"></script>
<script src="./www.jq22.com_files/jquery.min.js.下载"></script>
<script type="text/javascript">
    $(document).ready(function () {
        var aa = 0;
        var size = $(".banner_select>ul li").size(); //5
        var img_size = $(".banner_wrap>ul li").size(); //5
        for (var i = 0; i <= size - 1; i++) {
            $(".banner_select>ul li")[i].id = i;
            $(".banner_wrap>ul li")[i].id = i;
        }

        $(".banner_select>ul li").hover(function () {
            aa = this.id
            $(".J_trigger_line").css({
                "left": (this.id * 195)
            })
            $(".banner_wrap>ul li").eq(this.id).addClass("on").siblings(this).removeClass("on");
            ;
            $(".banner_wrap>ul li").eq(this.id).fadeIn(500).siblings(this).fadeOut(500);
        });

        function move() {
            $(".J_trigger_line").css({
                "left": (aa * 195)
            })
            $(".banner_wrap>ul li").eq(aa).addClass("on").siblings(aa).removeClass("on");
            $(".banner_wrap>ul li").eq(aa).fadeIn(500).siblings(aa).fadeOut(500);
        }

        var t = setInterval(lunbo, 2000);

        function lunbo() {
            if (aa == img_size) {
                aa = 0;
            }
            move();
            aa++
        }

        $(".banner_wrap").hover(function () {
            clearInterval(t);
        }, function () {
            t = setInterval(lunbo, 2000);
        });
        $(".left").click(function () {
            if (aa <= 1) {
                aa = 6;
            }
            aa -= 2;
            move();
            aa++;
        })
        $(".right").click(function () {
            if (aa == 5) {
                aa = 0;
            }
            aa++;
            aa--;
            move();
            aa++;
        })
    })
</script>
</body>
</html>